<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>修改酒店信息</title>
</head>
<body>

<form method="post" th:action="@{/user/edit}" th:object="${user}">
    <table>
        <tr>
            <td>ID:</td>
            <td><input type="text" name="hotelId" th:field="*{hotelId}"></td>
            <!--user.getHotelId() user.getHotelName() user.getAddress() user.getAddress()-->
        </tr>
        <tr>
            <td>NAME:</td>
            <td><input type="text" name="hotelName" th:field="*{hotelName}"></td>
        </tr>
        <tr>
            <td>ADDRESS</td>
            <td><input type="text" name="address" th:field="*{address}"></td>
        </tr>
        <tr>
            <td>CITY</td>
            <td><input type="text" name="city" th:field="*{city}"></td>
            <!--user.getCity() user.getProvince() user.getCountry()-->
        </tr>
        <tr>
            <td>PROVINCE</td>
            <td><input type="text" name="province" th:field="*{province}"></td>
        </tr>
        <tr>
            <td>COUNTRY</td>
            <td><input type="text" name="country" th:field="*{country}"></td>
        </tr>
        <tr>
            <td>STAR</td>
            <td><input type="text" name="star" th:field="*{star}"></td>
            <!--user.getStar() user.getScore() user.getLandmark() user.getAttraction()-->
        </tr>
        <tr>
            <td>SCORE</td>
            <td><input type="text" name="score" th:field="*{score}"></td>
        </tr>
        <tr>
            <td>LANDMARK</td>
            <td><input type="text" name="landmark" th:field="*{landmark}"></td>
        </tr>
        <tr>
            <td>ATTRCATION</td>
            <td><input type="text" name="attraction" th:field="*{attraction}"></td>
        </tr>
        <tr>
            <td>PRICE</td>
            <td><input type="text" name="price" th:field="*{price}">
                <!--user.getPrice() user.getHotelTel() user.getBreakfast() -->
        </tr>
        <tr>
            <td>TEL</td>
            <td><input type="text" name="hotelTel" th:field="*{hotelTel}"></td>
        </tr>
        <tr>
            <td>BREAKFAST</td>
            <td><input type="text" name="breakfast" th:field="*{breakfast}"></td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="提交">
            </td>
        </tr>
    </table>
</form>
</body>
</html>